package com.atguigu.gulimall.cart.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
 * 自定义线程池 的 配置属性
 */
@Data
@Component
@ConfigurationProperties(prefix = "gulimall.thread")
public class ThreadPoolConfigProperties {
    private Integer core;    //核心线程数
    private Integer maxSize;    //最大线程数
    private Integer keepAliveTime;    //存活时间
}
